package com.work.washer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.work.washer.mapper.CommentMapper;
import com.work.washer.model.Comment;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author  
* @description 针对表【type】的数据库操作Service实现
* @createDate 2024-02-20 10:07:14
*/
@Service
public class CommentService extends ServiceImpl<CommentMapper, Comment>
    implements IService<Comment> {

    public List<Comment> getByMachineId(Integer machineId){
        return lambdaQuery().eq(Comment::getMachineId,machineId).list();
    }

    public List<Comment> getByRepairId(Integer repairId){
        return lambdaQuery().eq(Comment::getRepairId,repairId).list();
    }
}




